Groups

interface Groups

This module is used to manage the groups.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val allGroups: ArrayItemList<Group>

Get all groups. The object returned is an ArrayItemList so you can listen to his changes.

Functions

Link copied to clipboard
abstract fun addParticipantToGroup(group: Group?, contact: IRainbowContact?, listener: RainbowListener<Unit, Unit>?)

Add one participant to a group.

Link copied to clipboard
abstract fun createGroup(name: String?, description: String?, listener: RainbowListener<Group, Unit>?)

Create a group with a name and a description.

Link copied to clipboard
abstract fun deleteGroup(group: Group?, listener: RainbowListener<Unit, Unit>?)

Delete a group.

Link copied to clipboard
abstract fun deleteParticipantFromGroup(group: Group?, contact: IRainbowContact?, listener: RainbowListener<Unit, Unit>?)

Delete one participant from a group.

Link copied to clipboard
abstract fun findGroupById(groupId: String?): Group?

Find the @object:Group object by its id.

Link copied to clipboard
abstract fun findGroupByName(groupName: String?): Group?

Find the @object:Group object by its name

Link copied to clipboard
abstract fun refreshGroups(listener: RainbowListener<List<Group>, Unit>?)

Refresh the list of group

Link copied to clipboard
abstract fun updateGroup(group: Group?, listener: RainbowListener<Group, Unit>?)

Update a group.